import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

const request = {

    //审核提交
    AuditCommit (params) {
        return httpPost({
            url: '/material/flowEngin/commit',
            params
        })
    },

    //撤回审核
    undoAudit (params) {
        return httpPost({
            url: '/material/flowEngin/undoAudit',
            params
        })
    },
    //获取当前节点信息
    getCurrentUnitInfo (params) {
        return httpPost({
            url: '/material/flowEngin/getCurrentUnitInfo',
            params
        })
    },
    //审核
    audit (params) {
        return httpPost({
            url: '/material/flowEngin/audit',
            params
        })
    },
    //作废
    nullify (params) {
        return httpPost({
            url: '/material/common/nullify',
            params
        })
    },
    //获取审核历史
    getAuditHistory (params) {
        return httpPost({
            url: '/material/flowEngin/getAuditHistory',
            params
        })
    },

}

export default request